package cz.cvut.fit.sin.eventlocator.data;

/**
 * Event class carrying all necessary attributes
 */
public class Event {

	private String title;
	private String url;
	private String description;
	private String startTime;
	private double latitude;
	private double longitude;
	private String imageUrl;

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title.replaceAll("'", "\"");
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		description = description.replaceAll("\\r?\\n", " ");
		description = description.replaceAll("'", "\"");
		this.description = description;
	}

	public String getStartTime() {
		return startTime;
	}

	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}

	public double getLatitude() {
		return latitude;
	}

	public void setLatitude(double latitude) {
		this.latitude = latitude;
	}

	public double getLongitude() {
		return longitude;
	}

	public void setLongitude(double longitude) {
		this.longitude = longitude;
	}

	public String getImageUrl() {
		return imageUrl;
	}

	public void setImageUrl(String imageUrl) {
		this.imageUrl = imageUrl;
	}

	@Override
	public String toString() {
		return "Event [title=" + title + ", url=" + url + ", description=" + description + ", startTime=" + startTime + ", latitude=" + latitude
				+ ", longitude=" + longitude + ", imageUrl=" + imageUrl + "]";
	}

}
